package com.stars.empoly.adapter

import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.stars.empoly.R
import com.stars.empoly.databinding.ItemCustomerOrderListBinding
import com.stars.empoly.model.CompreBean
import com.stars.empoly.vmodel.CustomerOrderListVModel
import com.trailer.base.base.BAdapter

class CustomerOrderListAdapter(var vm: CustomerOrderListVModel) : BAdapter<CompreBean, BaseDataBindingHolder<ItemCustomerOrderListBinding>>(R.layout.item_customer_order_list) {
    override fun convert(holder: BaseDataBindingHolder<ItemCustomerOrderListBinding>, item: CompreBean) {
        holder.dataBinding?.item = item
        holder.dataBinding?.vm=vm

    }
}
